﻿// See https://aka.ms/new-console-template for more information
var builder = new ComputerBuilder();

// 构建一台游戏电脑
var gamingPc = builder
    .SetCpu("Intel i9")
    .SetMemory(32)
    .SetStorage(1000)
    .SetGpu("NVIDIA RTX 4090")
    .SetOs("Windows 11")
    .WithBluetooth()
    .WithWifi()
    .Build();

// 构建一台轻薄本
var laptop = builder
    .SetCpu("Apple M2")
    .SetMemory(16)
    .SetStorage(512)
    .SetGpu("Integrated")
    .SetOs("macOS")
    .WithWifi()
    .Build();


System.Console.WriteLine("游戏电脑配置：");
System.Console.WriteLine(gamingPc);

System.Console.WriteLine("轻薄本配置：");
System.Console.WriteLine(laptop);